<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="UTF-8">
	<title>评价详情</title>
	<meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />


<!-- 新模板 -->
<link rel="shortcut icon" href="<c:url value='/template/new_muban/images/favicon.ico'/>" type="image/x-icon"/>

<!-- 最新导入 -->
<script type="text/javascript" src="<c:url value='/template/new_muban/js/jquery-min-1.7.js'/>"></script>
<link rel="stylesheet" href="<c:url value='/template/new_muban/css/font.css'/>">
<link rel="stylesheet" href="<c:url value='/template/new_muban/css/xadmin.css'/>">   
<script src="<c:url value='/template/new_muban/lib/layui/layui.js'/>" charset="utf-8"></script> 
<script type="text/javascript" src="<c:url value='/template/new_muban/js/xadmin.js'/>"></script>

<link rel="stylesheet" href="<c:url value='/template/new_muban/css/login.css'/>">


<!-- 导出到Excal -->
<script src="<c:url value='/jsp/lead_into/js/jquery.table2excel.js'/>"></script> 

  <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
<style type="text/css">
	/*圆形头像  */
	/* #divcss5{ margin:10px auto}  */
	#divcss5 img{ border-radius:50%} 
</style>
</head>
 <body>
    <div class="x-body">
	<!-- 	<div class="layui-carousel" id="test1" >
		  <div carousel-item style="text-align: center;">
		  <div><img src="https://cdn.little.dingdao8.com/imgs/20181228/4.gif" width="100%"/></div>
		   	<div><img src="https://cdn.little.dingdao8.com/imgs/20181228/1.jpg" width="100%"/></div>
		   	<div><img src="https://cdn.little.dingdao8.com/imgs/20181228/2.jpg" width="100%"/></div>
		   	<div><img src="https://cdn.little.dingdao8.com/imgs/20181228/3.jpg" width="100%"/></div>
		   	<div><img src="https://cdn.little.dingdao8.com/imgs/20181228/4.jpg" width="100%"/></div>
		   	<div><img src="https://cdn.little.dingdao8.com/imgs/20181228/5.jpg" width="100%"/></div>
		   	<div><img src="https://cdn.little.dingdao8.com/imgs/20181228/6.jpg" width="100%"/></div>
		  </div>
		</div>  -->
		
		 <div class="layui-carousel" id="test3" lay-filter="test4" style="margin-bottom: 15px;">
		  <div carousel-item style="text-align: center;" id="x-img">
		    <c:forEach items="${img_arr}" var="img_str">
				     <div><img src="${img_str}" height="100%"/></div>
				   </c:forEach>
			<%-- 	    <div><img src="${shopUserDetails.xcx_code}" height="100%"/></div> --%>
				   
		  </div>
		</div> 
		
               
        <form action="" method="post" class="layui-form layui-form-pane">
               <c:if test="${shopUserDetails.vip != null}">
	                <div class="layui-form-item " style="width:95%;">
	                    <label for="name" class="layui-form-label">
	                        <span class="x-red">*</span>店铺名称
	                    </label>
	                    <div class="layui-input-block">
	                        <input type="text" id="name" name="name" readonly required="" lay-verify="required"
	                         value="${shopUserDetails.s_name}" autocomplete="off" class="layui-input" >
	                          
	                    </div>
	                 </div>
	                     <!-- <div id="test9" style="float: right;margin-top: -55px;">  </div>   -->
	                     <div style="float: right;margin-top: -67px;"> 
	                     	<img src="https://cdn.little.dingdao8.com/imgs/20181228/vip.png " height="70px"/>
	                     </div>  
               </c:if>
               <c:if test="${shopUserDetails.vip == null}">
               		<div class="layui-form-item ">
	                    <label for="name" class="layui-form-label">
	                        <span class="x-red">*</span>店铺名称
	                    </label>
	                    <div class="layui-input-block">
	                        <input type="text" id="name" name="name" readonly required="" lay-verify="required"
	                         value="${shopUserDetails.s_name}" autocomplete="off" class="layui-input" >
	                          
	                    </div>
	                 </div>
               </c:if>
               
                <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">
                      用户信息
                   
                    </label>
                    <table  class="layui-table layui-input-block">
                        <tbody>
                            <tr>
                                <td>
                                    	联系人
                                </td>
                                <td>
                                       ${shopUserDetails.s_contact}
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    	手机号
                                </td>
                                <td>
                                       ${shopUserDetails.s_phone}
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    	地址
                                </td>
                                <td>
                                       ${shopUserDetails.s_location}
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
                
                
              
	              <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">
                      微信信息
                    </label>
                    <table  class="layui-table layui-input-block">
                        <tbody  id="y-img">
                            <tr>
                                <td>
                                    	头像
                                </td>
                                <td>
                                	<div><!-- 圆角 id="divcss5" class="layui-circle"都行 -->
                                       <img class="layui-circle" width="45px" src="${shopUserDetails.headimg}">
                                    </div> 
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    	昵称
                                </td>
                                <td>
                                        ${shopUserDetails.nickname}
                                
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    OPENID
                                </td>
                                <td>
                                    ${shopUserDetails.openid}
                                </td>
                            </tr>
                            <tr>
                                <td>
                                   	微信ID
                                </td>
                                <td>
                                    ${shopUserDetails.wxid}
                                </td>
                            </tr>
                            <tr>
                                <td>
                                   	小程序码
                                </td>
                                <td>
                                	<img src="${shopUserDetails.xcx_code}" height="100px"/>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
	             
	             
                
                <!-- <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">
                        拥有权限
                    </label>
                    <table  class="layui-table layui-input-block">
                        <tbody>
                            <tr>
                                <td>
                                    <input type="checkbox" name="like1[write]" lay-skin="primary" title="用户管理">
                                </td>
                                <td>
                                    <div class="layui-input-block">
                                        <input name="id[]" lay-skin="primary" type="checkbox" title="用户停用" value="2"> 
                                        <input name="id[]" lay-skin="primary" type="checkbox" value="2" title="用户删除"> 
                                        <input name="id[]" lay-skin="primary" type="checkbox" value="2" title="用户修改"> 
                                        <input name="id[]" lay-skin="primary" type="checkbox" value="2" title="用户改密"> 
                                        <input name="id[]" lay-skin="primary" type="checkbox" value="2" title="用户列表">
                                        <input name="id[]" lay-skin="primary" type="checkbox" value="2" title="用户改密"> 
                                        <input name="id[]" lay-skin="primary" type="checkbox" value="2" title="用户列表">
                                        <input name="id[]" lay-skin="primary" type="checkbox" value="2" title="用户改密"> 
                                        <input name="id[]" lay-skin="primary" type="checkbox" value="2" title="用户列表"> 
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                   
                                    <input name="id[]" lay-skin="primary" type="checkbox" value="2" title="文章管理">
                                </td>
                                <td>
                                    <div class="layui-input-block">
                                        <input name="id[]" lay-skin="primary" type="checkbox" value="2" title="文章添加"> 
                                        <input name="id[]" lay-skin="primary" type="checkbox" value="2" title="文章删除"> 
                                        <input name="id[]" lay-skin="primary" type="checkbox" value="2" title="文章修改"> 
                                        <input name="id[]" lay-skin="primary" type="checkbox" value="2" title="文章改密"> 
                                        <input name="id[]" lay-skin="primary" type="checkbox" value="2" title="文章列表"> 
                                    </div>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div> -->
         <c:if test="${shopUserDetails.tuijian_name != null}">     
                <div class="layui-form-item">
                    <label for="name" class="layui-form-label">
                        推荐人
                    </label>
                   <!--  <div class="layui-input-inline"> -->
                    <div class="layui-input-block">
                        <input type="text" id="name" name="name" readonly required="" lay-verify="required"
                         value="${shopUserDetails.tuijian_name}(${shopUserDetails.tuijian_mendian})" autocomplete="off" class="layui-input">
                    </div>
                </div>
       </c:if> 
       			<div class="layui-form-item">
                    <label for="name" class="layui-form-label">
                        创建时间
                    </label>
                   <!--  <div class="layui-input-inline"> -->
                    <div class="layui-input-block">
                        <input type="text" id="name" name="name" readonly required="" lay-verify="required"
                         value="<fmt:formatDate pattern="yyy-MM-dd HH:mm:ss" value="${shopUserDetails.s_createtime}"/>" autocomplete="off" class="layui-input">
                    </div>
                </div>
           <c:if test="${shopUserDetails.vip != null}">     
                <div class="layui-form-item">
                    <label for="name" class="layui-form-label">
          VIP到期时间
                    </label>
                   <!--  <div class="layui-input-inline"> -->
                    <div class="layui-input-block">
                        <input type="text" id="name" name="name" readonly required="" lay-verify="required"
                         value="<fmt:formatDate pattern="yyy-MM-dd HH:mm:ss" value="${shopUserDetails.vip}"/>" autocomplete="off" class="layui-input">
                    </div>
                </div>
       </c:if> 
       <c:if test="${shopUserDetails.bz != null}">     
                <div class="layui-form-item">
                    <label for="name" class="layui-form-label">
          备注
                    </label>
                   <!--  <div class="layui-input-inline"> -->
                    <div class="layui-input-block">
                        <input type="text" id="name" name="name" readonly required="" lay-verify="required"
                        value="${shopUserDetails.bz}" autocomplete="off" class="layui-input"/>
                    </div>
                </div>
       </c:if>                
                 <div class="layui-form-item">
                    <label for="name" class="layui-form-label">
                        一句话简介
                    </label>
                   <!--  <div class="layui-input-inline"> -->
                    <div class="layui-input-block">
                        <input placeholder="未填写"" type="text" id="name" name="name" readonly required="" lay-verify="required"
                         value="${shopUserDetails.s_detail}" autocomplete="off" class="layui-input">
                    </div>
                </div>
               
                <div class="layui-form-item layui-form-text">
                    <label for="desc" class="layui-form-label">
                店铺详情
                    </label>
                    <div class="layui-input-block">
                        <textarea placeholder="这里显示的是店铺详情"" id="desc" name="desc"  class="layui-textarea"  style="resize:none;"  readonly>${shopUserDetails.s_info}</textarea>
                    </div>
                </div>
                <div class="layui-form-item">
           <!--      <button class="layui-btn" lay-submit="" lay-filter="add">增加</button> -->
              </div>
            <c:if test="${shopUserDetails.s_video != null}">     
                <div class="layui-form-item layui-form-text">
                    <label for="desc" class="layui-form-label">
            视频介绍
                    </label>
                   <!--  <div class="layui-input-inline"> -->
                   <div class="layui-input-block"  >
                   <center>
                      <div class="video" style="width:50%;" ></div>
                    </center>
                    </div>
                   
                </div>
       </c:if>    
              
             
            </form>
         	 
            
            <!-- 谷歌地图 -->
            <!-- <div class="row map">
            <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                <iframe src="http://www.google.cn/maps/embed?pb=!1m18!1m12!1m3!1d3508.726978125245!2d121.59075431559972!3d28.427493982499115!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x344e2a2fe8b8c895%3A0x3f32b9472ae753a3!2z5pmo5YWJ6Lev!5e0!3m2!1szh-CN" width="100%" height="300" frameborder="0" style="border:0" allowfullscreen></iframe>
            </div> 
        </div> -->
        <!-- 高德地图 -->
        <div class="row map">
            <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                <iframe src="https://m.amap.com/navi/?dest=${shopUserDetails.longitude},${shopUserDetails.latitude}&destName=${shopUserDetails.s_name}&hideRouteIcon=1&key=28a02963c02213f3138590e44391fd3b" width="100%" height="400" frameborder="0" style="border:0" allowfullscreen></iframe>
            </div> 
        </div>
	
            
            
    </div>
    <script>
        layui.use(['form','layer'], function(){
            $ = layui.jquery;
          var form = layui.form
          ,layer = layui.layer;
        
          //自定义验证规则
          form.verify({
            nikename: function(value){
              if(value.length < 5){
                return '昵称至少得5个字符啊';
              }
            }
            ,pass: [/(.+){6,12}$/, '密码必须6到12位']
            ,repass: function(value){
                if($('#L_pass').val()!=$('#L_repass').val()){
                    return '两次密码不一致';
                }
            }
          });

          //监听提交
          form.on('submit(add)', function(data){
            console.log(data);
            //发异步，把数据提交给php
            layer.alert("增加成功", {icon: 6},function () {
                // 获得frame索引
                var index = parent.layer.getFrameIndex(window.name);
                //关闭当前frame
                parent.layer.close(index);
            });
            return false;
          });
          
          
        });
    </script>
   
   
<!-- CKplayer播放 --> 
 <!-- 视频插件 -->
	 <script type="text/javascript">
	 //http://p6ieexopw.bkt.clouddn.com/lhGULBqnfSri5kFVUzm0lBPWOciE
	 var video_location =  '${shopUserDetails.video_address}';
		var videoObject = {
			container: '.video',//“#”代表容器的ID，“.”或“”代表容器的class
			variable: 'player',//该属性必需设置，值等于下面的new chplayer()的对象
			autoplay:false,//自动播放
			live:false,//直播
			video:video_location, //视频地址
			
		};
		var player=new ckplayer(videoObject);
	</script>
	
<!-- 轮播 -->	
<script src="<c:url value='/jsp/lead_into/yuanban_layui/layui/layui.js'/>" charset="utf-8"></script>
<!-- <script src="//res.layui.com/layui/dist/layui.js" charset="utf-8"></script> -->
<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
<script>
	layui.use(['carousel', 'form'], function(){
	  var carousel = layui.carousel
	  ,form = layui.form;
	  
	  //常规轮播
	  carousel.render({
	    elem: '#test1'
	    	,width: '100%'
	    		,height: '450px'
	    ,arrow: 'always'
	  });
	  
	  //改变下时间间隔、动画类型、高度
	  carousel.render({
	    elem: '#test2'
	    ,interval: 1800
	    ,anim: 'fade'
	    ,height: '120px'
	  });
	  
	  //设定各种参数
	  var ins3 = carousel.render({
	    elem: '#test3'
    	,width: '100%'
    	,height: '300px'
   	    ,interval: 3000
	  });
	  //图片轮播
	  carousel.render({
	    elem: '#test10'
	    ,width: '778px'
	    ,height: '440px'
	    ,interval: 5000
	  });
	  
	  //事件
	  carousel.on('change(test3)', function(res){
	    console.log(res)
	  });
	  
	  var $ = layui.$, active = {
	    set: function(othis){
	      var THIS = 'layui-bg-normal'
	      ,key = othis.data('key')
	      ,options = {};
	      
	      othis.css('background-color', '#5FB878').siblings().removeAttr('style'); 
	      options[key] = othis.data('value');
	      ins3.reload(options);
	    }
	  };
	  
	  //监听开关
	  form.on('switch(autoplay)', function(){
	    ins3.reload({
	      autoplay: this.checked
	    });
	  });
	  
	  $('.demoSet').on('keyup', function(){
	    var value = this.value
	    ,options = {};
	    if(!/^\d+$/.test(value)) return;
	    
	    options[this.name] = value;
	    ins3.reload(options);
	  });
	  
	  //其它示例
	  $('.demoTest .layui-btn').on('click', function(){
	    var othis = $(this), type = othis.data('type');
	    active[type] ? active[type].call(this, othis) : '';
	  });
	});
	
<!-- 评分 -->
layui.use(['rate'], function(){
	  var rate = layui.rate;
	//只读
	  rate.render({
	    elem: '#test9'
	    ,value: 5
	    ,readonly: true
	  });
});

<!-- layui富文本编辑器 -->
layui.use('layedit', function(){
  var layedit = layui.layedit;
  layedit.build('desc',{
	  disabled:"false",		//这里就设置contenteditable属性的值了
	  tool: []				//自定义头部bar按钮  'left', 'center', 'right', '|', 'face'
  });
});

<!-- 图片弹出层 -->
layui.use('layer', function(){
    $ = layui.jquery;//jquery
  layer = layui.layer;//弹出层

  //以上模块根据需要引入
	//轮播图弹出
    layer.ready(function(){ //为了layer.ext.js加载完毕再执行
      layer.photos({
        photos: '#x-img'
        //,shift: 5 //0-6的选择，指定弹出图片动画类型，默认随机
      });
    });
  //微信信息弹出
    layer.ready(function(){ //为了layer.ext.js加载完毕再执行
        layer.photos({
          photos: '#y-img'
          //,shift: 5 //0-6的选择，指定弹出图片动画类型，默认随机
        });
      });
  
});





</script>




	
  </body>

</html>